﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="Miming.Model" assembly="miming">

    <class name="Company" table="company">
        <id name="Id">
    		<generator class="native"/>
    	</id>
        <property name="Name"/>
        <property name="Address"/>
        <property name="Country"/>
        <property name="Phone"/>
        <property name="Fax"/>
        <property name="Email"/>
        <property name="Website"/>
        <property name="LegalName"/>
    	<component name="LegalAddress" class="Address">
	        <property name="Street1" column="LegalAddress"/>
	        <property name="Street2" column="LegalAddress2"/>
	        <property name="City"/>
	        <property name="Zip"/>
    	</component>
        <property name="State"/>
        <property name="LegalCountry"/>
        <property name="FiscalYear"/>
        <property name="TaxYear"/>
        <property name="EIN"/>
        <property name="SSN"/>
    	<component name="PayrollInfo" class="PayrollInfo">
	        <property name="Contact" column="PayrollContact"/>
	        <property name="Title" column="PayrollContactTitle"/>
	        <property name="Phone" column="PayrollContactPhone"/>
    	</component>
        <property name="ShipToName"/>
        <property name="ShipToAddress"/>
    </class>

</hibernate-mapping>
